-
Notifications
You must be signed in to change notification settings - Fork 131
nRF52xxx: Add UART hal + examples #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.root_source_file = b.path("src/boards/nrf52840-mdk.zig"), | ||
}, | ||
}), | ||
.pca10040 = chip_nrf52832.derive(.{ | ||
.board = .{ | ||
.name = "PCA10040", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this name? Why not nRF52-DK?
4ad4b15
to
67f6c46
Compare
@@ -0,0 +1,39 @@ | |||
const Patch = @import("microzig/build-internals").Patch; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(so far) we could use the same patch file as 52840
pub fn main() !void { | ||
board.init(); | ||
|
||
uart.apply(.{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want this board specific, we could have a board.init_uart
.
I think in most simple cases we don't want CTS and RTS, but maybe some board with an on-board usb uart bridge might have it in which case we would.
No description provided.